package com.shujia.method_.one;

public class MehodDemo2 {


    public static void main(String[] args) {
        // 调用
        printMaxNum();
    }

    // 定义方法
    public static void printMaxNum() {
        int a = 10;
        int b = 20;
        int max = a > b ? a : b;
        System.out.println(max);
    }

}
